package topin.facecat.FaceCat.UI;
import facecat.topin.core.*;
import facecat.topin.grid.*;

public class FCGridUnitDoubleCell extends  FCGridDoubleCell{
    public FCGridUnitDoubleCell()
    {
        setDigit(2);
    }

    public String getPaintText()
    {
        double value = getDouble();
        if (value >= 10000000)
        {
            return FCTran.getValueByDigit(value / 10000000, 2) + "亿";
        }
        else if (value >= 10000)
        {
            return FCTran.getValueByDigit(value / 10000, 2) + "万";
        }
        else
        {
            return FCTran.getValueByDigit(value, 2);
        }
    }
}